#pragma once
#include "def.h"
#include "context.h"
#include "ActionApiBase.h"
#include "agencyevent.h"



class ActionMail : public ActionApiBase
{
public:
    static bool Init();
    
public:
    static void Handle(MsgData&& msg_data);
public:
    static void OnAgencyEventGet(std::int32_t err_code, stAgencyEvent* agencyevent, std::string&& trans);
protected:
    static void Request(const stAgencyEvent& agencyevent, const std::string& trans
        ,std::uint16_t svtype, std::uint32_t svid, std::uint32_t uuid
        ,const std::uint32_t& uid, const std::uint32_t& agencyid, const std::uint32_t& game, const std::string& username
        ,const std::string& title, const std::string& content);

};